//
//  JAddressProvinceModel.m
//  HeadIndustry
//
//  Created by jun on 2017/9/5.
//  Copyright © 2017年 jun. All rights reserved.
//

#import "JAddressProvinceModel.h"

@implementation JAddressProvinceModel

- (void)configCityModels
{
    _cityModels = [NSMutableArray array];
    
    for (NSDictionary *dic in _child) {
        JAddressCityModel *model = [JAddressCityModel new];
        [model setValuesForKeysWithDictionary:dic];
        [_cityModels addObject:model];
        
    }
}

- (void)setChild:(NSArray *)child
{
    _child = child;
    [self configCityModels];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.Id = value;
        
    }
}


@end
